package cn.findviewbydream.evil.main.dao;

import cn.findviewbydream.evil.main.entity.BaseMealTypeEntity;
import cn.findviewbydream.evil.main.entity.BaseTypeOfWorkEntity;
import cn.findviewbydream.evil.main.entity.MealEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.main.dao
 * 时间：17-2-23
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：
 ********************************************/
@Repository
public interface SettingMealDAO
{
    /**
     * 基础菜品类型列表
     */
    List<BaseMealTypeEntity> selectBaseMealTypeList();

    /**
     * 基础工种列表
     */
    List<BaseTypeOfWorkEntity> selectBaseTypeOfWorkList();

    int insertBaseMealType(BaseMealTypeEntity entity);

    int updateBaseMealTypeState(BaseMealTypeEntity entity);

    int updateBaseMealType(BaseMealTypeEntity entity);

    List<MealEntity> selectMealList(BaseMealTypeEntity entity);

    MealEntity selectMealById(int id);

    int insertMeal(MealEntity entity);

    int updateMeal(MealEntity entity);

    int updateMealMarket(@Param("mealId") int mealId, @Param("market") boolean market);
}
